﻿using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using SmartCity.Shared;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc;

namespace MetroManagement
{
    /// <summary>
    /// 声明控制器
    /// </summary>
    [RemoteService]
    [Area("metroManagement")]
    [Route("api/metroManagement/statements")]
    public class StatementController : AbpController, IStatementAppService
    {
        private readonly IStatementAppService _statementAppService;

        public StatementController(
            IStatementAppService statementAppService)
        {
            _statementAppService = statementAppService;
        }

        // 获取
        [HttpGet]
        public Task<ResultResponse<StatementDto>> GetAsync(string type)
        {
            return _statementAppService.GetAsync(type);
        }
    }
}